package com.direction.hold.ui;

import android.content.res.Resources.NotFoundException;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;
import cn.cheln.explorer.actions.EqualCheck;
import cn.cheln.explorer.actions.OperationUtil;
import cn.cheln.explorer.actions.sort.DBSort;
import cn.cheln.explorer.cpnt.adapter.FileAdapter;
import cn.cheln.explorer.cpnt.adapter.FileItemSrc;
import cn.cheln.explorer.ds.database.Category;
import cn.cheln.explorer.ds.database.CategoryInfo;
import cn.cheln.explorer.ds.database.MimeSrc;
import cn.cheln.explorer.ds.uri.AccountNode;
import cn.cheln.explorer.ds.uri.NaviSourceIndicator;
import cn.cheln.explorer.ds.uri.NavigationNode;
import cn.cheln.explorer.ds.uri.NavigationPool;
import cn.cheln.explorer.ui.FileListViewHolder;
import cn.cheln.explorer.ui.Switcher;
import cn.cheln.explorer.ui.ViewHolder;
import cn.cheln.support.data.text.xml.SPUtil;
import cn.cheln.support.manager.ActivityPool;
import cn.cheln.support.ui.adapter.MapAdapter.AdaptInfo;
import com.direction.hold.FileApp;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;

public abstract class FileCursorActivity extends CommonActivity
  implements NaviSourceIndicator
{
  public static final int SortMenuInAPK = 0;
  public static final int SortMenuInMusic = 1;
  protected static boolean isFirstLaunched = true;
  public MapAdapter.AdaptInfo apkAdaptInfo;
  protected View.OnClickListener categoryClickListener = new View.OnClickListener()
  {
    public void onClick(View paramView)
    {
      int i = ((View)paramView.getParent()).getId();
      Object localObject = null;
      switch (i)
      {
      case 2131230729:
      default:
      case 2131230728:
      case 2131230730:
      case 2131230731:
      case 2131230732:
      case 2131230733:
      case 2131230734:
      }
      while (true)
      {
        CategoryInfo localCategoryInfo = ((Category)MimeSrc.categoryRepository.get(localObject)).categoryInfo;
        String str1 = localCategoryInfo.categorySign;
        String str2 = localCategoryInfo.displayName;
        FileCursorActivity.this.navTool.navEntity.push(new AccountNode(str1, str2));
        FileCursorActivity.this.gotoCat();
        return;
        localObject = "audio";
        continue;
        localObject = "image";
        continue;
        localObject = "video";
        continue;
        localObject = "doc";
        continue;
        localObject = "apk";
        continue;
        localObject = "lewa/theme";
      }
    }
  };
  public HashMap<String, Class> datamap;
  public MapAdapter.AdaptInfo musicAdaptInfo;
  public int sortMenuMarkInit = -1;
  public ViewHolder viewHolder;

  private void initData()
  {
    if (this.datamap != null)
      return;
    this.datamap = new HashMap();
    this.datamap.put("_data", String.class);
    this.datamap.put("title", String.class);
    this.datamap.put(" count(distinct _data) ", Integer.class);
    this.datamap.put("_size", Integer.class);
  }

  public void access(NavigationNode paramNavigationNode, int paramInt1, boolean paramBoolean, int paramInt2, int paramInt3)
  {
  }

  protected void access(NavigationNode paramNavigationNode, int paramInt1, boolean paramBoolean, int paramInt2, int paramInt3, int paramInt4)
  {
  }

  protected void cutOrCopy(int paramInt)
  {
  }

  public MapAdapter.AdaptInfo getApkAdaptInfo()
  {
    if (this.apkAdaptInfo == null)
    {
      this.apkAdaptInfo = new MapAdapter.AdaptInfo();
      this.apkAdaptInfo.objectFields = new String[] { "versionCondition", "sizeText", "versionNameStr", "name", "iconRes", "isUISelected" };
      this.apkAdaptInfo.listviewItemData = new FileItemSrc();
      this.apkAdaptInfo.viewIds = new int[] { 2131230807, 2131230808, 2131230805, 2131230803, 2131230800, 2131230801 };
      this.apkAdaptInfo.listviewItemLayoutId = 2130903053;
      this.apkAdaptInfo.actionListeners = this.viewHandlers;
    }
    return this.apkAdaptInfo;
  }

  protected String getEmptyText()
  {
    return null;
  }

  public int[] getMenuIds()
  {
    return null;
  }

  public MapAdapter.AdaptInfo getMusicAdaptInfo()
  {
    if (this.musicAdaptInfo == null)
    {
      this.musicAdaptInfo = new MapAdapter.AdaptInfo();
      this.musicAdaptInfo.objectFields = new String[] { "name", "album", "artist", "iconRes" };
      this.musicAdaptInfo.viewIds = new int[] { 2131230803, 2131230845, 2131230844, 2131230800 };
      this.musicAdaptInfo.listviewItemLayoutId = 2130903056;
    }
    return this.musicAdaptInfo;
  }

  public String getNavBarWholeShowText()
  {
    return null;
  }

  public NavigationNode getNaviSource()
  {
    return ((NavigationNode)this.navTool.navEntity.peek());
  }

  public View getPageView()
  {
    return super.getPageView();
  }

  public ViewHolder getViewHolder()
  {
    return ((ViewHolder)this.holderMap.get(FileCursorActivity.class.getName()));
  }

  public ViewHolder getViewHolder(String paramString)
  {
    return ((ViewHolder)this.holderMap.get(paramString));
  }

  public void gotoCat()
  {
    Switcher.viewFlowTo(loadFileCursor(), this.contentView, this);
  }

  public void handlerRead(Object paramObject, boolean paramBoolean)
  {
  }

  public ViewHolder loadFileCursor()
  {
    return loadViewHolder(FileCursorActivity.class.getName(), new FileListViewHolder(this.list, this));
  }

  protected boolean navigate(MenuItem paramMenuItem)
  {
    return false;
  }

  public ViewHolder newViewHolderInstance()
  {
    return new FileListViewHolder(this.list, this);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    initData();
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    return super.onCreateOptionsMenu(paramMenu);
  }

  public boolean onMenuItemClick(MenuItem paramMenuItem)
  {
    return super.onMenuItemClick(paramMenuItem);
  }

  protected void onStart()
  {
    super.onStart();
    if (this.policy == null)
      this.policy = new DBSort(0, 0);
    loadFileCursor();
  }

  public boolean performCountActivityCopy(int paramInt)
    throws Resources.NotFoundException
  {
    EqualCheck localEqualCheck = new EqualCheck(0, 0);
    Collections.sort(OperationUtil.selectedEntities, localEqualCheck);
    if (localEqualCheck.isResult())
    {
      Toast.makeText(this.context, 2131034181, 1).show();
      return true;
    }
    this.adapter.markVisible(false);
    SlideActivity.paramActivity.isInOperation = paramInt;
    showBottomBar(8);
    PathActivity.activityInstance.switchToCutCopy();
    SlideActivity.fileActivityInstance.setDisplayScreen(1);
    ActivityPool.getInstance().refresh();
    return false;
  }

  public void recordPageSharedPreference(String paramString)
  {
    SPUtil.putValue(this.context, "ApkRememberedPage", "apk", paramString);
  }

  protected void setHiddenFileShowFlag()
  {
  }

  protected void setNavigationPosAndNode(int paramInt1, int paramInt2, NavigationNode paramNavigationNode)
  {
  }

  public void setPageView(View paramView)
  {
    super.setPageView(paramView);
  }

  protected void setSort()
  {
    super.setSort();
    if (this.policy != null)
      return;
    this.policy = new DBSort(0, 0);
  }

  public void setViewHolder(ViewHolder paramViewHolder)
  {
    this.viewHolder = paramViewHolder;
  }

  public void sort()
  {
  }

  public void startup()
  {
  }

  protected void swithToPrivacyActivity()
  {
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.direction.hold.ui.FileCursorActivity
 * JD-Core Version:    0.5.2
 */